package org.example;

import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson2.JSON;
import com.bj58.zhuanzhuan.zzarch.common.util.JsonUtil;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.google.protobuf.InvalidProtocolBufferException;
import org.example.extren.HotSeriesListConfig;

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


public class Main {
    public static void main(String[] args) throws InvalidProtocolBufferException, JsonProcessingException {
        Integer fen = null;
        String res = fenToYuanBigDecimalStr(fen);
        System.out.println(res);
    }

    public static String fenToYuanBigDecimalStr(Integer fen) {
        BigDecimal value = new BigDecimal(fen).divide(new BigDecimal(100), 2, RoundingMode.HALF_UP)
            .stripTrailingZeros();

        return value.toPlainString();
    }
}